{% extends 'base.html' %}
{% block content %}
<div class="layui-row layui-col-space15">
    <div class="layui-col-md4">
        <div class="layui-card">
            <div class="layui-card-header">ETF基金</div>
            <div class="layui-card-body">
                <h2>{{ stats.etf_count }}</h2>
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-card">
            <div class="layui-card-header">LOF基金</div>
            <div class="layui-card-body">
                <h2>{{ stats.lof_count }}</h2>
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-card">
            <div class="layui-card-header">货币基金</div>
            <div class="layui-card-body">
                <h2>{{ stats.money_count }}</h2>
            </div>
        </div>
    </div>
</div>

<div class="layui-card" style="margin-top: 15px;">
    <div class="layui-card-header">最近更新</div>
    <div class="layui-card-body">
        {% if stats.last_update %}
        最后更新时间：{{ stats.last_update.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
        {% else %}
        暂无更新记录
        {% endif %}
    </div>
</div>
{% endblock %}